package com.example.lll.lll_20_weather;

import java.util.List;

public class WeatherResponse {
    public int status;
    public String message;
    public List<CityWeather> cities;
    public String time;

    public String getMessage(){ return  message; }
    public int getStatus() { return status; }
    public List<CityWeather> getCities() { return cities; }
    public String getTime(){ return time; }

    public static class CityWeather {
        public CityInfo cityInfo;
        public WeatherData data;

        public CityInfo getCityInfo() { return cityInfo; }
        public WeatherData getData() { return data; }
    }

    public static class CityInfo {
        public String city;
        public String getCity() { return city; }
    }

    public static class WeatherData {
        public String shidu;
        public double pm25;
        public List<Forecast> forecast;
        public String wendu;

        public String getShidu() { return shidu; }
        public double getPm25() { return pm25; }
        public List<Forecast> getForecast() { return forecast; }
        public String getWendu() {return wendu;}
    }

    public static class Forecast {
        public String ymd;
        public String type;
        public String high;
        public String low;
        public String getYmd() {return ymd;}
        public String getType() {return type;}
        public String getHigh() {return high;}
        public String getLow() {return low;}
    }
}
